import request from '@/utils/request'

export function findAllDormitory(params) {
  return request({
    url: '/findAllDormitory',
    method: 'get',
    params
  })
}
export function selectDormitoryById(params) {
  return request({
    url: '/selectDormitoryById',
    method: 'get',
    params
  })
}
export function deleteDormitory(params) {
  return request({
    url: '/deleteDormitoryById',
    method: 'delete',
    params
  })
}
export function updateDormitoryById(data) {
  return request({
    url: '/updateDormitoryById',
    method: 'post',
    data
  })
}
export function addDormitory(data) {
  return request({
    url: '/addDormitory',
    method: 'post',
    data
  })
}
